//2.定义狗类继承动物类
//行为:eat(String something)方法,看家lookHome方法(无参数)
public class Dog extends Animal{
    @Override
    public void eat(String something) {
        System.out.println(super.getColor()+"的"+super.getAge()+"岁的狗在吃"+something);
    }
    public void lookHome(){
        System.out.println("狗在看家");
    }

    public Dog() {
    }

    public Dog(int age, String color) {
        super(age, color);
    }
}
